package cn.edu.hbpu.mapper;

import cn.edu.hbpu.pojo.Student;
import cn.edu.hbpu.pojo.StudentCustom;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    int deleteByPrimaryKey(Long sno);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Long sno);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    /**
     * 根据姓名查询学生信息
     * @param stuName
     * @return
     */
    StudentCustom selectStudentByStuName(@Param("stuName") String stuName);

    /**
     * 根据姓名查询用户权限信息
     * @param stuName
     * @return
     */
    Student selectStudentInfo(@Param("stuName") String stuName);
}